var usr = document.getElementById("admin_form_text"),
	pass = document.getElementById("admin_form_pasword");
	
//用户名校验添加监听
usr.addEventListener("blur",dataCheck);
//密码校验添加监听
pass.addEventListener("blur",passCheck);
function dataCheck(){
	var value = usr.value;
	if(value.length ===0){
		alert("用户名不能为空")
	}
}
function passCheck(){
	var value = pass.value;
	if(value.length ===0){
		alert("密码不能为空")
	}
} 

